<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<nav>
    <div class="btn-toolbar operation" role="toolbar">
        <div class="btn-group" role="group"><a class="btn btn-default" onClick="select()">全选</a> <a
                class="btn btn-default" onClick="reverse()">反选</a> <a class="btn btn-default"
                                                                      onClick="noselect()">不选</a></div>
        <div class="btn-group" role="group">
            <button type="submit" class="btn btn-default" data-toggle="tooltip" data-placement="bottom"
                    title="删除全部选中" name="checkbox_delete">删除
            </button>
        </div>
    </div>

            <#if (pageBean.totalPage?eval <=10) >
                <#assign begin="1">
                <#assign end="${pageBean.totalPage}">
            <#else>
                <#assign begin="${pageBean.currentPage-5}">
                <#assign end="${pageBean.currentPage+4}">
                <#if (begin?eval < 1)>
                    <#assign begin="1">
                    <#assign end="10">
                <#elseif (end?eval > pageBean.totalPage?eval) >
                    <#assign begin="${pageBean.totalPage-9 }">
                    <#assign end="${pageBean.totalPage }">
                </#if>
            </#if>

    <ul class="pagination pagenav">
        <li>
            <a>共有${pageBean.allRow}条记录,当前第${pageBean.currentPage}/${pageBean.totalPage}页</a>
        </li>
                <#if (pageBean.currentPage?eval > 1) >
                    <li>
                        <a onclick="findPage('1')"  href="#">首页</a>
                    </li>
                    <li class="disabled"><a onclick="findPage('${pageBean.currentPage-1}')" href="#" aria-label="Previous"> <span aria-hidden="true">&laquo;</span> </a></li>
                </#if>
                <#list begin?eval..end?eval as i>
                  <li><a class="active" onclick="findPage('${i}')" href="#">${i}</a></li>
                </#list>
                <#if (pageBean.currentPage < pageBean.totalPage) >
                    <li><a onclick="findPage('${pageBean.currentPage+1}')" href="#" aria-label="Next"> <span aria-hidden="true">&raquo;</span> </a></li>
                    <li>
                        <a onclick="findPage('${pageBean.totalPage}')" href="#">尾页</a>
                    </li>
                </#if>
    </ul>
</nav>
</body>
</html>